package cn.edu.scau.cmi.yangminghao.project;
	
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.edu.scau.cmi.yangminghao.spring.Student;


public class SpringClient  {
	
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        // 2. 得到配置创建的对象
        Student student = (Student) context.getBean("student");
        System.out.println(student.getTutor());
        
	}
}
